package com.hyzx.qbasic.admin.domain.dao;

import com.hyzx.qbasic.admin.model.po.CommonAttachmentPO;
import com.hyzx.qbasic.admin.model.po.CommonImagePO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommonFileMapper {
    int saveImage(CommonImagePO record);

    int saveFile(CommonAttachmentPO record);

    int deleteAttachment(@Param("fileId") Integer fileId);

    int deleteAttachmentByBusinessId(@Param("businessId") String businessId);

    int deleteImage(@Param("imgId") Integer imgId);

    int deleteImageByBusinessId(@Param("businessId") String businessId);

    CommonAttachmentPO getAttachmentInfo(@Param("fileId") Integer fileId);

    CommonImagePO getImageInfo(@Param("imgId") Integer imgId);

    List<CommonAttachmentPO> getAttachmentList(@Param("businessId") String businessId);

    List<CommonImagePO> getImageList(@Param("businessId") String businessId);
}